Mock the modulestore for the heartbeat tests