Add tests for error messages
Add support for multiprocessing on Travis CI