Start of BOB factory tests
Added common factory cancellation tests from txsocksx