write tests for addClass(), removeClass(), attr(), fix a bug: add a missing return