Added test for Touch Trigger and Time Trigger

- Some improvements in the Test Engine
- Some bug fixes in behaviors