Testing models of stellar structure and evolution - I. Comparison with detached eclipsing binaries