js: parser unit tests