Some tasks done

Some tasks were finished:
- All tests became automatic
-LastErrorException: formatting logic changed

+Adding sources for JNI libraries