tests before saving buffer