Update TestEnvironment.java

Reformatted & added comments so I can submit it.