Remove explicit calls to magic methods in test files