made test_sweep_line.js working