Move assert and tempfile into tests pkg

Signed-off-by: Luis Pabón <lpabon@redhat.com>