further changes to testing framework to use test database instance
finally sorted out order of settin db_session and added a few user model tests