Adding some unit test for base repository