Tests all pass. Segmentation fault happens on ./unit