test and layout