Extend to add invalid identifier error - with tests.