explicitly use implicit_element to make sure mocha stubs method on right object
convert to string before compare 'class'