EJBCLIENT-104: run tests with security manager and provide fixes
EJBCLIENT-104: the actual test case and fix