unit test largely working (only calculations)