added linelength argument to first test and all tests now pass