testing whether variables set