Fleshed out enumeration script, added test infrastructure.