improve log in test