Utilities for testing