[codestyle] Codestyle refactor for tests