Add nonce existence checks and basic test coverage for contexts