add double buffering test.