Update tests to work with new test font functions in QgsFontUtils

- Cleanup code style