migrating tests to use session objects rather than ogm directly