Added test case for pattern (if) validation #80