JNI sync now throws proper exceptions. CamelCased unit tests.