add tests for autocloseable
add tests for logging proxy factory