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

There is trouble with this test. 
Get this error: ./testlogs: line 6: [: restorecon: unary operator expected