testcases for RecommenderXBlock

I messed things up in the previous PR, and thus I make a new one. I think I should also change cms/djangoapps/contentstore/views/component.py , but I forget how to do it. Do you know how to do that, and could you help me check is there any other thing wrong, @pmitros ?
When the database is initialized in a test case, does it need to be cleaned up after the test case? Does the `tearDown()` function take care of this?