Added length validation test in rspec