tests: fix now broken tests (due to -D defaults), add test for empty files