moved layouttest from test to main