added test for updaterecord method