Calculator and factorial tests pass