rspec for trail model
added validation tests for models