Add test for buyback case.