add tests with createBufferLoader