Added missing unit tests for commands.