More tests for command api.