Extend stub tests to check struct with pointers