Good software testing is difficult to do in non-regulated industries and is even more difficult in the heavily regulated medical device industry. This set of blogs by Julien Zaegel describe
how to take a practical, agile approach to manage rigorous and efficient SW testing and comply with medical device regulations: https://agilemeddev.com/2016/09/25/medical-devices-software-testing-overview/