added test for readonly files