Add tests for class manipulation on jQuery object containing more than one element. Close gh-1404.