tests for two kind of method attributes