tests for EJBCLIENT-85 + the same bug in remote-naming

https://issues.jboss.org/browse/EJBCLIENT-85
https://bugzilla.redhat.com/show_bug.cgi?id=978447