Fix problem in read-only tests

Signed-off-by: Álvaro Arranz <aarranz@conwet.com>