Unit tests for command