Fix realtime unit tests