more unit tests for CapacityByteArrayOutputStream