more test cases for back reference