Add unit tests to 'make test' and Travis CI

test-ex1 is disabled as it doesn't play nicely with $CC and
$CXX configuration.