layout class and test class