complete and fix unit tests for addtoassessment view.