Add a test for readonly in view_event_test.