Use mock lib to patch db.session.commit

Otherwise, original function will not be restored if any of assertion
fail.
Separate cleaning and bootstrapping test db.

This will allow generic model tests to pass (they expect totally empty
database)