Added JUnit dependency.
Added config for log4j.
Fixed use of certificate.