More unit testing and more bug fixing
Throw Java excpeptions on Xem::Exceptions