Handling java.lang objects. Added tests for logging