HADOOP-7285. Refactor the test command to conform to new FsCommand class. Contributed by Daryn Sharp.