added more tests and created a mock for cosmo manager rest client