There's already a test that checks for the above conditions.  See broker/test/unit/team_test.rb line 478