added functional tests

and travis config