Tests run automatically on make and file renaming.

The test setup wasn't great before, I think it's better now.
And the files were renamed with a "d" suffix, representing
daemon.
Updated to reflect new targets