Creating functional test. fixed #86

Signed-off-by: Lucas Costa <lucascostaa73@gmail.com>
Signed-off-by: Vinicius Bandeira <bandeiravinicius0@live.com>