restore empty file behavior & test