remove duplicate setAppliedClasses function
allow setting classes in the test case
Merge branch 'master' into stylesource