Add tests for front matter extraction
Switch to new ports syntax