TST: linalg: add regression test for gh-8577
TST: linalg: add regression test for gh-8577

Add regression test that checks for certain bugs where results from sdot
change if certain libraries are imported first.

numpy/numpy,madphysicist/numpy,pizzathief/numpy,jorisvandenbossche/numpy,ahaldane/numpy,mattip/numpy,endolith/numpy,MSeifert04/numpy,rgommers/numpy,anntzer/numpy,pizzathief/numpy,pizzathief/numpy,simongibbons/numpy,charris/numpy,pdebuyl/numpy,grlee77/numpy,abalkin/numpy,pizzathief/numpy,rgommers/numpy,jakirkham/numpy,ahaldane/numpy,simongibbons/numpy,MSeifert04/numpy,gfyoung/numpy,pdebuyl/numpy,jakirkham/numpy,madphysicist/numpy,seberg/numpy,jakirkham/numpy,madphysicist/numpy,seberg/numpy,mhvk/numpy,mattip/numpy,Eric89GXL/numpy,pbrod/numpy,mhvk/numpy,endolith/numpy,simongibbons/numpy,gfyoung/numpy,grlee77/numpy,numpy/numpy,charris/numpy,grlee77/numpy,mhvk/numpy,shoyer/numpy,WarrenWeckesser/numpy,gfyoung/numpy,jakirkham/numpy,mhvk/numpy,numpy/numpy,ahaldane/numpy,anntzer/numpy,pdebuyl/numpy,mattip/numpy,Eric89GXL/numpy,jorisvandenbossche/numpy,mhvk/numpy,madphysicist/numpy,shoyer/numpy,pdebuyl/numpy,WarrenWeckesser/numpy,madphysicist/numpy,pizzathief/numpy,WarrenWeckesser/numpy,pbrod/numpy,anntzer/numpy,abalkin/numpy,abalkin/numpy,shoyer/numpy,MSeifert04/numpy,rgommers/numpy,jorisvandenbossche/numpy,mattip/numpy,pbrod/numpy,WarrenWeckesser/numpy,charris/numpy,Eric89GXL/numpy,endolith/numpy,rgommers/numpy,ahaldane/numpy,endolith/numpy,jorisvandenbossche/numpy,MSeifert04/numpy,grlee77/numpy,WarrenWeckesser/numpy,jorisvandenbossche/numpy,seberg/numpy,shoyer/numpy,numpy/numpy,pbrod/numpy,anntzer/numpy,simongibbons/numpy,charris/numpy,pbrod/numpy,grlee77/numpy,ahaldane/numpy,Eric89GXL/numpy,MSeifert04/numpy,simongibbons/numpy,seberg/numpy,jakirkham/numpy,shoyer/numpy