updated tests, works with javascriptMP