tests for if evaluator cast node, fixes