add some basic tests for layout measurement