Split build targets betwen build and test phases.