add guard for automated tests