Code sample based on "Unit Testing Polymer Elements" article from the polymer website