Using classloader to load test resources