Update test and fix load_resource method.