test for invalid method on resource