Conform to travis-ci `make test` to invoke all tests
Fix double declaration of function `error'