calculator and factorial tests pass