FLUID-4931: modified based on jira comments

Modified the hasClass option for assertNode. It can now take an array of classes which will get compared as a hash against the node's actual classes. I also reorganized the existing code slightly to accommodate this change.