removes printstacktrace from test