Updated api test to include device resource