fixed method repository_params and unit tests for create method. Implemented update method.