Move visualisation unit tests to be client only

The code is never run on the server, so doesn't need to be tested on the server
Fix server-side unit tests following removal of the matrix
Linting