error message for wrong enum value differs on different jvms. fix assertion in testcase and fix windows ci build