[DO NOT MERGE][WIP] Fixes #7831 - Tests for foreman-tasks

Base for writing tests
It should be `:test => 'db:test:prepare'`, to make sure the database is set up correctly, when running on a fresh installation.