Added/updated tests for Push and Validate and pulled some common code into TestUtil