Trigger matches

1. Fixed @wip tests from api/enquiries/create_or_edit_enquiries.feature
2. Wrote functional tests for #1871