remove function getMock considered useless
remove test on getMock method