unit test for repostorage