Test error unit test for genericAddRedBlackTree