Add unittest for generateUnittest
Filter empty error message