testing interceptors helpers functions