This tests that the JS property value and the attribute value for a hidden input field are the same.