Failing unit test for regex matching