added guard for auto-testing