Added has_text and match_text to Buffer, and reset_peek to BaseBuffer. Added tests for new functions