added seg faulting test case