Added mock testcase for main and get_commands