test/runner: set exit code on pass/fail
added bin/test
add .travis.yml