add test cases for classNames with trailing spaces