added tests for GenericRepository proj and a few touches on other parts (I hate commiting like that...)