work on sourcemaps and create tests