testing menuitem
Added tests
Removed unused statements