Added load test data function with preprocessing