added repository on domain and unit test