applying flake8 formatting, removing duplicated test