Moves mockito feature inclusion

* mockito is only required for tests so moves the mockito feature inclusion
  to the test feature.