test for autolayout