add test for import/parse-line. fix style issues