Wait for scheduler to receive job messages before creating the agent

Sometimes these tests flickered because the agent would be created and send a work request before the scheduler had received the enqueue job message, meaning it got a work response of 0 jobs instead of 1.