more tests, more fixes to bufferWithTime