added test for multiple thens