Cover windows methods, singleton access to Context, and Environment

This PR adds tests to cover terminal methods involving windows, singleton access to the context, and configuration paths for Environment.