Added test utility functions.