Refactor agree/reject command and write test codes.