unit test rounding; fix rounding bugs; minor renames, and consts