Fixed some logging in tests