Removed ini_get to check if output-buffering is turned on. output buffering can be started regardless of it being turned on in php.ini.
Added unit test for clearing the output buffer