use resource in test