Unit tests for RepositoriesController edit method

Signed-off-by: Renan Fichberg <rfichberg@gmail.com>
Signed-off-by: Diego Araujo <diegoamc90@gmail.com>