tests: add base_attr_readonly

Signed-off-by: Jean Privat <jean@pryen.org>