Refactored tests and added PointerObject tests