test set cookie
add provider and add require-dev and fix the d() bug