tiny fixes to compiled code
few more tests for circular buffer