failing test case and fix for 18356 test client context lost for nested views

Link to ticket: https://code.djangoproject.com/ticket/18356