fix the test_types to use the data method