fixed factor_divide tests [fixes #241]