fixing incorrect usage of disposable objects
adding delete branch permissions
rewriting integration test settings