More cuda test code, now with class