added logging in tests