correct test for word and formatting for flake8