Correct calculations with tests