Sdb fixes

Let's do some housekeeping and add a stress1.c test.