(function (ns) {
    "use strict";

    var assert = assert || buster.assertions.assert;
    var refute = refute || buster.assertions.refute;

    buster.testCase('Test issue #2', {
        setUp: function () {

            $.ajax({
                async: false,
                url: buster.env.contextPath + "/testfile2.sos",
                success:_.bind(function(data) {
                    this.sosidata = data;
                }, this)
            });
            this.parser = new ns.Parser();
        },

        "should be able to read attributes": function () {
            var sosidata = this.parser.parse(this.sosidata);
            assert(sosidata.features.all());

            var flate = sosidata.features.getById(5);
            assert.equals(flate.attributes.kvalitet.målemetode, NaN);
        },

        "should be able to get KURVE 606": function () {
            var sosidata = this.parser.parse(this.sosidata);
            var kurve606 = sosidata.features.getById(606);
            assert(kurve606);
        },

        //test issue 14
        "should be able to write to TopoJSON": function () {
            var sosidata = this.parser.parse(this.sosidata);
            var name = "testdata";
            var json =  sosidata.dumps("topojson", name);
            assert(json);
        }

    });
}(SOSI));

@@ -1292,16 +1292,291 @@
 (json);%0A
+        %7D,%0A%0A        //test issue 14%0A        %22should be able to write to GeoJSON%22: function () %7B%0A            var sosidata = this.parser.parse(this.sosidata);%0A            var name = %22testdata%22;%0A            var json =  sosidata.dumps(%22geojson%22, name);%0A            assert(json);%0A
         

add geojson test as well