#JC-552: Corrected junit testfor max length