Minor tweaks and a new (unrelated) unit test

Better identification of 9999 ebuilds to include date based package versions like "99999999"
An unnecessary unit test that I wrote while testing, but you can't have too many
Trivial tidyups