Utilities for common testing tasks