Edit Lines entity, add test