better logging in test