[--bugid=54831--] Fix bug in test credentials
[--bugid=54831--] Fix bug in test credentials