Fix test failure on master due to race when resizing frequently

Resolves #11 

Adding just a bit of delay before sending the `SIGWINCH` fixes this on my desktop. Let's see what the travis build says.