fix #18

The test fails intermittently with a timeout before the fix.