Unabstracted createBuffer() in test.js