Fixed Pyflakes warnings in teststyles