Fix js unit tests