Fix contains testing for object contained in array, add more tests