Fix behavior of forgetting_factor

I wrote test for `carry_up` and `forgetting_factor` behavior, and fix forgetting behavior.