Having a timeout to code checks would allow to set maximum execution time as well as reduce testing time