added tests for recursive depth errors