fixing test after adding team constraint in database form