Added factorial.
Added exponentiation tests.