I would make 2 tests, one to test `form="bar"` is okay, one to test `form="nonexistent"` throws exception.