re-factoring: buffer link/unlink

- tests and empty ws skeleton are added