cleaning up code in GpuMethodTest