Test environment more specifically.

Fixes #239