Adding tests for a couple of classes.
Improving coverage and consistency of JcrSessionFactory.