Fix for issues1 - added JUnit tests

Hi,
   For the [Issues1 | https://github.com/SAP/cloud-jenkins/issues/1], added Junit Tests along with the fix.