changed the test to catch that we fail to not link in the export variable
treat exports from debugOnly packages same way that we treat weak dependencies and do not export them by default