fixed the menu bar when screen size is set to small, and adding tests for the model