test for RecommenderXBlock

I suggest the 'for' statement should be extracted into a separate method. That way the upload_file method can truly represent running one testcase.