wrote additional tests, mostly in the "D" section of functions.