test ws and action