added test for real time indexBy, close #158