Includes tweaks in the db preparation script and in the tests for proper handling of async model. Only a single test is run at the moment, being the only one that succeeded for me.