test bufferedAmount