rewrite paths in tests