anchor.diff:  		if [ "$service" == "None" ]; then
   			continue
   		fi
  -		services=`$CF services | grep ${PKG_NAME}-$service`
  -		if [ -z "$services" ]; then
  +		$CF services | grep ${PKG_NAME}-$service >/dev/null
  +		if [ "$?" -ne "0" ]; then
   			plan=`$CF marketplace | grep $service | awk '{ print $2 }' | sed 's/,//g'`
  -			if [ "$plan" != "" ]; then
  +			if [ -n "$plan" ]; then
   				cf create-service $service $plan ${PKG_NAME}-$service
   			else
   				echo "no service matching" $service "in marketplace"
  
positive.code: 
  function authenticate() {
  	$CF --version
  	if [ "$CF_SKIP_SSL" == "true" -o "$CF_SKIP_SSL" == "True" ]; then
  		cf api $CF_TARGET --skip-ssl-validation
  	else
  		cf api $CF_TARGET
  
negative.code: 
  function wait_till_running() {
  	for i in `seq 1  6`; do
  		CF_TRACE=true $CF app "$1" | grep RUNNING | grep "$1" >/dev/null
  		if [ "$?" -ne "0" ]; then
  			sleep 10
  			echo "cf app $1   # waiting for running state"
  