JS backend: reorganize data class tests and add another two