Now mocking plugin.getLogger() in the tests.

Fixes the test issues with AllPay.