Fix and rework mock expectations
Use inline engine as default engine in phpunit tests
Fix assertCount fail message