Added test units for commands.py