make test_source_map more robust