updated test cases for client for loop