Jpeg 2000 test and ensure dtype is correct for rotate operation in tests.