better tests
update/create now trigger row creation and deactivation of old rows
and still found some issues with calculations