Low level request handler, assertions and some tests