Moved before_deploy hooks to after_deploy to test