What costs are modelled when backtesting shorting of a security? Can these shorting costs somehow be set by the user?

Being able to see a daily or montly P&L from the backtest would be a great addition to the features of the platform to provide data like the above.