modified test accordingly depending upon the logic