fixed pattern matching test