Add real_time test into test_unittest and fixed #4