TestWithResource