Fix test test_basic_resource