Fixed tests for length validator and added tests for both minimum and maximum