Remove remaining part of the core (+ generalize the tests library).