Check for pending migrations before tests are run