fix AttributeError: Can't get local object 'AuditServer.start.<locals>.server'
In test_gostech_audit.py, several tests were failing with the error AttributeError: Can't get local object 'AuditServer.start..server' on an M1 Mac. Moving the server function to the top-level scope resolved the issue.