Fixed final problems in Divide and DivideTest such that all tests pass.