Added tests for Session factories