Flesh out buffer support; move buffer tests to unit.