Deciding Between Manual and Automated Testing: Striking the Perfect Balance