Added tests and cleaned up cli command 'aws snapshot deployments'