refactored, skipping tests not to be run on openjpeg 1.3