Tests: Fix warnings in tests

Ignore warning messages when they are expected.

Fix real warnings.

Also add missing tst_layout.qml to the test pro file.

Change-Id: I2a3835d386570aeb993f275793b3e5e69cc41599
Reviewed-by: Liang Qi <liang.qi@digia.com>