tests: add two unit tests to reproduce reported parser bugs

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
scripting: fix crash of skip parser definition

The parsers were not saved on the stack, causing a segfault later-on.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
tests: fix bugs in ports unit test

Remove a port from the TC before it gets destroyed/dangling.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>
partially revert commit 526bbf75cde567a3dcd793fd6b9f1209dcedfabd

The modification is probably ok, but this is not the right time to do it
(breaks ABI)

Signed-off-by: Peter Soetens <peter@thesourceworks.com>