added non-middleware tests