Insure compatibility with redmine 2.5 and update tests