simplify read_only test