Added tests for object.and

Noticed there were no tests for the object.and(peers) function so added positive and negative test cases.