added factorial algorithm to tests
great refactoring around spaces in expressions