removed input as Buffer object into the push function. updated test