Removed the dtype cast on qr function.
Added test for A_Xinv_b function.