Add tests for ArrayBuffer