An int test that ensures eeagent waits for a listener before beating

This is here for @labisso to review. The test is a little brittle, so a review would be nice.