Added more tests around repository