finish adding change_machine and its test