added Guard for tests