factored out test data class