middleware tests, render options, docs