Add test for new retrieveData method.