Add functional test to travis