test setup
check if attribute is valid