Added guard for automatic test execution