Fixed unit test crashing in clang