Logging in test case