[BLOCKED] Add basic match condition tests

Needs #69.
Cannot pass a function result as ref like this