clean up layout manager implementations
bring back layoutmanager unit tests from Nifty 1.x and cleaned them up