Updated the test cases to use the GM with pointers