Test fixes, and add migrations to git.

Ticket: #585
Branch: feature/585-track-contract-hour-extensions

Branch: feature/585-track-contract-hour-extensions