test for data class