Quality Code: Software Testing Principles, Practices, and Patterns