javascript tests working all execpt one