JS encoder

Improve test for encoder covering arrays. Object serialization is
missing