add indexOf test for object reference