fixed bugs in factorial, makefule, and tester