Convenience utilities for testing. (Deprecated)