Only add QtTest dependency to lib if the unit tests are enabled.

Change-Id: Iaf89c1db04bd44107c166f10cd933854bade8a6e
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>