moved type inside the test

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>