more tests, and some logging