converted testsub to class, always beta! (;