Fixes bug on CF information reset and adds tests on CF manipulation. Fixes #271 and #275.