added more layoutManager tests and fixed some bugs in HorizontalLayout