Added support for expected expressions when the return value of a function
was of a pointer type.
Now when creating a value from a pointer type we cast whatever value passed
to the method to a pointer type.
Added more test cases.
Fixed bug when printing test results on screen on fork mode.

Refactored code a little bit.