Fixed deploy and smoke test on BUILD.