added factorial methods and tests to calculator