fixed Errorf usage in test suite