TST: add tests for no-name source package fix

Test that package with None as discovered package name, returns name as
test.id() instead of crashing.