Working referral spec
Fix up the unit test scanning at build