Core: Add test to make sure extra fields are ignored.
Core: Remove main function.