Line testing code