Test of layout code programmatic creation