Fixing test about metadata. Cleaning code.

Signed-off-by: Bryan de Holanda <bryan.h.fernandes@hotmail.com>
Signed-off-by: Macartur de Sousa <macartur.sc@gmail.com>