added logging in test