improve deltareflect, and unit testing framework