Add failing unit test for #1
Fix regexp parsing [closes #1]