Test if error is thrown when no password is given.