added tests for lib/command