fix user integration spec and add resource integration spec