Fix bdsqr, add and reorganize tests

Although award winning, this routine has probably never been used directly from Julia as it crashed first time I tried it.