Improve tests

* test for range pluralizations
* run doctests but just on py2
* mock `os.environ` during tests