Fixed a deadlock and added a 5MB binary transfer test.