src/test_detect.py: refactor code to allow to mock get_uuid