adds first perl test
adds segfault test
should fix tests