some test cases and enable back reference only when there is needed.