Added new functionality to do write operation in TestReg of GLIB.