Head and Get methods implementation, add more test cases.