Fix test plugin mocking clusterfuck