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.
This appears to only test the url not whether the modulestore raises the exception if it can't access mongo, but perhaps that's good enough.