Incomplete unit test for BaseRepository using sinon