This functionality was introduced in a87db48e but only only tested indirectly though Linalg tests. Add direct tests.