Checks for pending migrations before tests are run