detect: Adding test code for lldp parsing

As the output could be weird, let's add some code to handle the
testability of it