Partial discharge testing