refactoring - moved tests into sub-package

Signed-off-by: Michael Vorburger <mike@vorburger.ch>
Fixed the bug preventing keystore.jks from working in-WAR (if Resource
is not a file:/ but on classpath:/)

Signed-off-by: Michael Vorburger <mike@vorburger.ch>