mock testing Command to livestatus and command_file

Mock tests of part of the commands.