refactored calculation_test fitting to linkedCells