added test for max length