add specs for method already defined errors