Adding a test of cancelling a file transfer before reacting
Making the tests run a bit faster
Making the tests a bit more robust by cleaning up even if they fail
Added forgotten asserts
Tweaking sleep
Adding 2 more tests