test(library/rewriter): add lambda_{body/type}_rewriter tests