added unit tests (trigger tests)