added test code to testRetrieve corresponding to the case of fieldlist being null