add basic tests for stub API
add Travis CI config