Fix test bootstrap and database