exception testing, fix travis.yml to use py.test