(PDB-16) Set environment in testing

Now that we warn on a nil environment, we need to ensure its always set in our
tests.

Signed-off-by: Ken Barber <ken@bob.sh>