added testing utility function to set user cookies before controller tests