Fix layout test that was actually testing incorrect behaviour.