Fix broken credentials test