Test that /rooms/:room_id/invite API works