utilities for test