test the invoke function gets self passed into it