Fixed segfault, vertex array test