Added functional tests (with request context)