Stabilize Tests_GridLayout::test_alignment()

Change-Id: I94012a223fc63994ec2db0677f52e55c85905597
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>