Fix measurement on UIImageView, add tests for linearLayout