product-of-mental-illness test — Legal Definition, Examples & Cases