New tests for invalid names in PI and namespace constructors