Adds some tests for PCAModel

Tests for:

- Changing `n_active_components`
- Trimming
- Variance coherence and variance coherence after the previous two operations

It also fixes a bunch of bugs in those methods that had never been spotted before due to the lack of tests.