Test double buffering