Fix assert_same string replacement: looks like we don't need to store global file replacement table,
one per test instance is enough.