Add tests for function conditions.