[#57378292] Refactor specs and silence logger in tests