Tests: Compile fix for Qt4 on Mac

Change-Id: I17bad7e03a45f372d8c5ad08d8dbefe3797f227c
Reviewed-by: hjk <hjk121@nokiamail.com>