Fix sequence JS unit tests