Fixed memory leak due to non closing of http connection. Added Junit to deps.