Testing code in a linear way