tests for notification setting resource and pep8/pyflakes fixes