added more  unit tests for applyMenu method