adde rest actions and tests