Adds test for issue 3371 and enables testing with password.
Merge pull request #3394 from yurydelendik/test-password

Enables testing with password