Need Help: Function Swap Fee in BNB before it goes to Marketingwallet

Hello Devs,
i need your help for our Contract.
We have a function implemented which swaps the fee into BNB. And afte this a part into the Marketingwallet.
In our tests it doesn´t work, and i have noch answere why.
Is anybody there how can help me to activate the swap into Marketingwallet?

Here is the link to the Testcontract.