ENG-7187 added conditions in testcase