The Principles of Risk and Testing