Add functional tests on Travis