Simple test of object and pass pointer