#1097 Add more tests in realtime. The coverage is 86% now.