add assertion for undefined key in method parser test