Some test helper functions.