The EV1 wasn't just a "test car". It was a production vehicle which was built (as you said) to comply with the California ZEV mandate, which GM also spent millions lobbying against, and eventually defeating, while they were contracting with an outside engineering firm to design the EV1.
TTBOMK, GM didn't spend millions lobbying against turbine engine and hydrogen fuel cell tech.
https://en.wikipedia.org/wiki/Patent_encumbrance_of_large_au...