unit test for opj_init_from_stream