fixed bug in tests where pointers were being compared instead of objects