add clear_warnings before running tests and then check for warnings
Merge pull request #290 from jrha/accounts-invalidate-nscd-caches2

add clear_warnings before running tests and then check for warnings