Functioning timeout test