Fix: anchor at end of file will not generate wrong matching
Add: Three more test cases to test anchor-at-end-of-file case. Add expected failure tag to test 11 and test 12