CAS-1377: Added unit tests for form controller