using View.setElement method to correctly set view's element
testing view's attributes