Remove headers_sent() for tests