Bug 1039643: Write unit tests for contacts.js

This is not what I meant for the deepEqual change. More something like:
```javascript
var expectedMatchingTel = {value: mozContactNum, type: 'home'};
assert.deepEqual(matchingTel, expectingMatchingTel);
```