Added test to cover almost everything of sasalib.c.