Added test coverage for AddressMetadataRepository

Not sure about the scope of some tests