Added more tests for the path when the anchor is present