made some changes in SendDataHThread.java to allow handling exceptions in JUnit. made changes in the matching test class accordingly