Fix test (attempt #2) + fix warnings

Attempt #2 to fix classpath resource loading issue
Fix warnings