lint: Fix several E_NOTICE warnings from test script
lint: Add first of tests for mail parsing