repeat and factorial functions pass testem