Fix bdsqr, add and reorganize tests
Merge pull request #8661 from JuliaLang/anj/bdsqr

Fix bdsqr, add and reorganize tests