Test the weak_import attribute works
