Improve and fix the qbluetoothlocaldevice test

The Bluez code was not passing the test.

Task-number: QTBUG-22017
Change-Id: I0bc2fca7ec9d352481eea24c75b902c21b4fc0da
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>