Added new onWrite watcher to nfc shim. Added tests for nfc shim.