Revert "Unit test for switching layout"

This reverts commit b12ccf8c9e8087917bd617e938ae39095142fa70.