added the connectionFactory to glassfish-resources.xml and added JUnit tests