addes js unit tests