add test to check that menu contribution is added in java editor