Fixed method chaining and added tests for accepted rule