Testing the line detector