#232, #426: Add test suite for the id validator