tests/partial_apply: moved a function to the outer scope
Deleted components/evaluate and moved tests from test_optimizer to corresponding parts of the test suite

Some tests are marked by xfail, because not all functionality is implemented
in the current expression evaluator.