Add helper for testing invalid attributes