fixed deployment_phase
modified tests, fixed typos