refactor linear algebra tests into separate namespace