Fix configuration for tests