Add test for handling 403s

remove unnecessary patch
Add code to handle 403s