[Tunji] #4 refractored the contact-provider.js
[Tunji] #4 fixed the faailing tests due to refactoring