-add unit tests for jrs and import commands
-add unit tests for session factory
-minor refactoring