add a test to make sure it takes all "when"s