Enables testing with password

... and adds test for issue 3371