An initial round of environment-sanity tests

Per #273.