Added test for max length