update unittest for compiling ok in mac