Avoid NPE on null password
Unit tests with empty passwords