test to check that we get a 404 for exports with no data and fix to handle async exports with no data