only check file permissions in test

there appears to be a os x vs. linux discrepancy otherwise

Signed-off-by: Momchil Atanasov <m.momchil@gmail.com>