Adding unit tests for empty passwords and certificates