Add timeout test

Signed-off-by: Eli Skeggs <skeggse@gmail.com>