factor out pushing with a timeout loop to check if the directory exists yet
factor out to use the push.js in all the tests