Testing and development of buffer refresh logic