Explicitly require timeout and socket

Fixes fresh test runs under 1.9.3.

Closes #1242.