Added test for DatabaseError in assessment.api.self.create_assessment.

TNL-812