HH-42147 improve frontik.testing internals
HH-42147 fix some PEP8 issues