add tests for "layered", fix scrollbars