[FIX] Fixed broken test: testlogs. Added if statement in [[ ]] blocks.