Fixing the Tests and resolve the problem which happens when the module is loaded after the tables exists in the db.