basic tests and rudimentary support for sourcemaps