simplify mockCodec and fix it in GrailsUnitTestCase
Fix DefaultGrailsCodecClassTests
fix DefaultGrailsApplicationAttributesTests
fix WebUtilsTests
fix StreamCharBufferSpec tests
Fix bug in appending sub-buffers, add extra check for title buffer resetting
Fix failing test
isolate some tests to make them pass in some cases / environments