More testing for jpx wrapping.  Needs some refactoring, though.  #206