added tests for invalid triggers