Create test subpackage.
Package restructuring.

Move 'DirectedGraph' class to its own module.
Rename module containing 'RefGraph'.