fix uninitialized var
fix tests build
add tests to travis