Added more test cases to lookup-reference functions.