Add back_ptr in header and test case.