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