reorganize test files

- unittests go into top-level 'test'
- command line utilities go into top-level 'cmd'