Add functional test to the build