Port incidencestest to QtTest and make it actually work
This was failing previously, but since it indicated that only in debug output this went unnoticed.
This was failing previously, but since it indicated that only in debug output this went unnoticed.