added unit test coverage to backup and discovery service