Testing of sessionmaker rollback mock

Changed the sessionmaker rollback mock to properly pass the sessionmaker
parameters to the Session constructor, made the unit test properly check
the real database to ensure nothing was committed.