upgrade version and remote unnecessary cast to String in test