API tests: check the end of transfer