Added refConditions support to implementation & tests.