Finished Unit test for modules controller.

Signed-off By: Guilherme Rojas V. de Lima <guilhermehrojas@gmail.com>
Signed-off By: Renan Fichberg <rfichberg@gmail.com>