Add unit tests for ets_buffer