add Request::getAttributes() and test