little fix and add functionals test
add fuctional test to Travis CI