Add location type for test environment.

Closes #1851.