tests for passing functions on an object functions