Rename repository -> env in tests
Repositories must serialize/deserialize