Fixing the test cases to stop threads properly
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/airavata