Test case on rest calls