Fix some "no such provider" initialisation errors in tests

When running the Gradle build, these tests fail because the Bouncy Castle provider has not been registered.