adding functional tests

Signed-off-by: Thiago da Silva <thiago@redhat.com>