Cooper hints at end of Test career