Feature/test timeout

Add test to check that the timeout will reject with an error