tests segmentation fault