add class-based tests in addition to hdu-based tests