utilities for testing