Refactoring security metrics tests and feature

Signed-off-by: Lucas Kanashiro <lucas-kanashiro@hotmail.com>
Signed-off-by: Alexandre Barbosa <alexandreab@live.com>