test w/o segfault. not sure if using code correctly