TEST: improve testing of linear operator
To test new implementations of linear operators, all tests must currently be rewritten.
This commit adds a new test class which can be subclassed to test all new implementations of linear operators in a few lines of codes.
This MR is the first step of #35 (closed).