fixed a syntax error and added tests\ for padZeroes_generic