Bug fix for hardcoded passwords test