[CS] Run tests in build phase, not deploy phase