Setting up test- and latex output environment.