Add tests for discover_sourcemap