Re-enable custom condition test
Fixes #965 - add mode attribute (defaults to prepend)