added repostiory layer tests