Improve tests

* Use context manager instead of pytest.fixture
* Add logging
* etc.
Add pytest-pep8
.gitignore: Add AUTHORS and ChangeLog

because pbr auto-generates these for us
(http://docs.openstack.org/developer/pbr/#authors-and-changelog).