Fix risky tests.

Failing to close output buffers makes PHPUnit unhappy. Switch to test
styles that allow all created buffers to be closed.
Fix more risky tests.

These buffer starts offset the buffer closes that are in the test that
is being invoked with run() in the test method.
Merge pull request #4751 from cakephp/fix-risky-tests

Fix risky tests