Tests for Factor Class

1. Tests for Factor class
2. Removed `_bivar_factor_product` from see also section of documentation of `factor_product`.
3. Made `value_index = int(value_index)` inline.