db - test close remove and re-open file

verify the file does not get recreated if removed and a read-only attempt
is made on it
Change-Id: I57c60a5229f5e5dd19a35f6bd9a3bc6d215689f7