implementing unittest for fix of issue #5130