Added validation to check for pending migrations before running all the tests