Fix issue with tool.pg_rep_test being overwritten due to incorrect name begin
checked.  Also output usage for tool.pg_rep_test when no parameters are
provided.