Always make obj first.

Fixes "includes" failure on r/o src.  Reported by jdc.
Split tests into separate file.