Update internal tests with new exception in KeyProvider