update test case
adapt javascript unit tests