Common layout of modal and add test class.