rest api end to end testing part 2