Add tests for parameterized conditionals.
Fix issue with async events and conditionals, closes pull request #29