tests: add base_attr_lazy

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