Cache tests using buffer