init should be after the engine is added to the database
Merge pull request #340 from tombee/test-fix

init should be after the engine is added to the database