fix test logging; initialize variables properly for testing
done with findEvents test
done with BFS, including some unit tests on test.xml