Completed test and method for ex7.