Refine tests, add AllGuardsTrait and GuardUtils