Abstract common test types and functions.