fixed failing unit test for mobile Atom: connect the layout first and then change its properties, not vice versa.