test case supports onbuffering too