Macos will automatically load dependent modules when creating a target, resulting in more modules than the test expects.