Add test for the fetch functions.
Fix typo.