modified contactManagerImpl, add more tests for this class