Add test for raise an NoMethodError