Enable debug mode when in test environment

The debug mode of filepicker is perfect for tests.