Fix functional tests and remove test output files

Signed-off-by: Jesus Fernandez <jesus.fndz@gmail.com>