Add command function and testing create object