test: added segfault testcase