added test for overwriteMethod and overwriteAjax