added test on note_spec.rb for validation for note model