implemented factorization function. All tests currently non-failing
changed the syntax of the assertRaises tests so unittest counts them as passing and not errors