bug fix and tests for fractionation