JS backend: tests for reflection support