Fix failing testWrongCredentials test