added a simple file to file transfer test using testng
fixed some issues in the shutdown procedure