Added failing tests for conditions matching function