changes to tests.py and tracer.py

-tests.py:
add tests for graph method 'evaluate'
-tracer.py:
start writing graph method 'write_c_code'