fixes js unit tests