Corrected JavaScript tests