Sets up environment and inputs for tests