Add logging in REST API test