[autotests] Fix unstable BSD test
The current test compares a dangling pointer to a newly created object. This probably confirms it's a new object, but a smart OS could re-use that space, so it's not really a good way of doing that test.
Replace with a QSignalSpy on the engine being destroyed.