adding cljs protocols and buffers. Tests for buffers