Adds tests to model
Adds length validation