Only generic functions are leaved in testcommon.js and tests changed accordingly