Fixed test_resource_post so that it now passes