change service.py return struct and add tests content