add logging facility and check logs in tests