Added test case for password credentials. Fixed File-based store when checking for the current credential.