Convert linalg tests to unitest.