Add testing to SafeEval and SourceRef context generator.