Support utilities for testing