add tests for sourcemaps and get prototype working