added repository unit tests