improved test_public_availability_work