Add source-maps directory to expected output.
Add metadata to test hash.
Return bare js if no source map is created.