One needs a balance. In-class tests ensure that the students have done the work themselves, and mimics the practice in the profession where the engineer has to quickly make on-site, logical decisions. The questions can be framed to probe understanding of the principles.
Take-home projects with little limits on time and resources simulate deeper, creative professional practice by doing a complete project, given most resources. The students have to demonstrate their understanding of the system.