Add type-check test for method declarations.