some tests and logging work