Acceptance tests for repository edition

Also fixed a bug on the RepositoriesController for the case qhere some data is invalid
Acceptance test for repository deletion