Added boundary assertion for UnitTest.buffer