Refactored URI parser test cases.