adding test code to lines.js