Unit tests for real time stats