Mock the modulestore for the heartbeat tests

@nasthagiri or @dmitchell please review.

This fixes the heartbeat tests so that they don't have the overhead of instantiating a modulestore (or even need mongo running actually).

@benpatterson FYI.