writers/test: Refactor
It now also checks the executable bit.
Robert Hensing 2 years ago a6622bf0 e64f987f