write unit specs for note form controller