loads of changes, added buffer tests
much work on xiki tests