Add more tests, fix height calculation in RelativeLayout