Supports async tests, fixes runWithDefaults