Added tests for max length