add test cases and update result format