Update tests and add get_all_commands_hash helper method.