Make test code comply with CodePro rules.