more tests + pep8 + handle trigger synthesis

fix travis.yml

typos