Resources loader, casperjs tests for resources