Fixed bug in LengthValidator when test was reversed, added test case for this issue