Added travis config, fixed tests for use on travis