Add tests for spec command