Modified testWithTimeout, returns true if it times out