New test for Doc in js api