Completely creating studies; additional methods for testing

This can now follow the standard environment stuff; you don't need to hard-code the environment.