added test for isMaxLength widget