validate length.
added model tests.