@done, refs calculator: add unit tests