Added tests for ShellCommand.java