adding retrieve_one and func test