Split compile and test phase