Added some tests to the generic repository