add jasmine back
fix test for getMaxIndexForBufferType