Rewrote test for checking undefined methods