Fix analyzer noted issues in test code.