Add test case for lrdd middleware.