Add 20 second timeout for unit testing

For some reason Travis (probably due to loaded down workers) runs unit
tests about twice as slow as any other machine I've ran them on.
Since these are tests we might as well be liberal and avoid false
negatives.