Unit tests for the command service