Test for permission denied errors